package com.hh.bss.common;

import java.util.Comparator;

public class TreeNodeIDComparator<T> implements Comparator<T> {

	public int compare(Object obj1, Object obj2) {
		int j1 = Integer.parseInt(((TreeNode)obj1).id);
		int j2 = Integer.parseInt(((TreeNode)obj2).id);
		return (j1 < j2 ? -1 : (j1 == j2 ? 0 :1));
	}
}
